package com.fawvw.digital.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ISpeed {
    @Insert("INSERT INTO speed (act) VALUES (#{speed})")
    Integer insert(String speed);

    @Select("SELECT act FROM speed ORDER BY create_time DESC LIMIT 1")
    String selectOneCurrentSpeed();

}
